.class public final Lcom/ninesky/browser/view/c;
.super Landroid/widget/LinearLayout;

# interfaces
.implements Landroid/view/View$OnTouchListener;


# static fields
.field private static a:Lcom/ninesky/browser/view/c;


# instance fields
.field private b:I

.field private c:I

.field private d:Z

.field private e:Landroid/widget/HorizontalScrollView;

.field private f:Lcom/ninesky/browser/view/Dots;

.field private g:Landroid/widget/LinearLayout;

.field private h:Lcom/ninesky/browser/view/j;

.field private i:Lcom/ninesky/browser/view/e;

.field private j:Lcom/ninesky/browser/view/bs;

.field private k:Lcom/ninesky/browser/BrowserActivity;

.field private l:Landroid/os/Handler;


# direct methods
.method private constructor <init>(Landroid/content/Context;)V
    .locals 6

    const/4 v5, 0x1

    const/4 v4, 0x0

    const/4 v3, -0x1

    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput v3, p0, Lcom/ninesky/browser/view/c;->b:I

    const/16 v1, 0x1e0

    iput v1, p0, Lcom/ninesky/browser/view/c;->c:I

    iput-boolean v4, p0, Lcom/ninesky/browser/view/c;->d:Z

    new-instance v1, Landroid/os/Handler;

    invoke-direct {v1}, Landroid/os/Handler;-><init>()V

    iput-object v1, p0, Lcom/ninesky/browser/view/c;->l:Landroid/os/Handler;

    move-object v0, p1

    check-cast v0, Lcom/ninesky/browser/BrowserActivity;

    move-object v1, v0

    iput-object v1, p0, Lcom/ninesky/browser/view/c;->k:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    iget v1, v1, Landroid/util/DisplayMetrics;->widthPixels:I

    iput v1, p0, Lcom/ninesky/browser/view/c;->c:I

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v2, 0x7f03001f

    invoke-virtual {v1, v2, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    const v1, 0x7f0c0053

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/view/c;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/HorizontalScrollView;

    iput-object v1, p0, Lcom/ninesky/browser/view/c;->e:Landroid/widget/HorizontalScrollView;

    iget-object v1, p0, Lcom/ninesky/browser/view/c;->e:Landroid/widget/HorizontalScrollView;

    invoke-virtual {v1, v5}, Landroid/widget/HorizontalScrollView;->setSmoothScrollingEnabled(Z)V

    iget-object v1, p0, Lcom/ninesky/browser/view/c;->e:Landroid/widget/HorizontalScrollView;

    invoke-virtual {v1, p0}, Landroid/widget/HorizontalScrollView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    const v1, 0x7f0c0054

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/view/c;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iput-object v1, p0, Lcom/ninesky/browser/view/c;->g:Landroid/widget/LinearLayout;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    iget v1, p0, Lcom/ninesky/browser/view/c;->c:I

    invoke-direct {v2, v1, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    new-instance v3, Lcom/ninesky/browser/view/e;

    move-object v0, p1

    check-cast v0, Lcom/ninesky/browser/BrowserActivity;

    move-object v1, v0

    invoke-direct {v3, v1}, Lcom/ninesky/browser/view/e;-><init>(Lcom/ninesky/browser/BrowserActivity;)V

    iput-object v3, p0, Lcom/ninesky/browser/view/c;->i:Lcom/ninesky/browser/view/e;

    iget-object v1, p0, Lcom/ninesky/browser/view/c;->g:Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/ninesky/browser/view/c;->i:Lcom/ninesky/browser/view/e;

    invoke-virtual {v1, v3, v4, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    new-instance v3, Lcom/ninesky/browser/view/j;

    move-object v0, p1

    check-cast v0, Lcom/ninesky/browser/BrowserActivity;

    move-object v1, v0

    invoke-direct {v3, v1}, Lcom/ninesky/browser/view/j;-><init>(Lcom/ninesky/browser/BrowserActivity;)V

    iput-object v3, p0, Lcom/ninesky/browser/view/c;->h:Lcom/ninesky/browser/view/j;

    iget-object v1, p0, Lcom/ninesky/browser/view/c;->g:Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/ninesky/browser/view/c;->h:Lcom/ninesky/browser/view/j;

    invoke-virtual {v1, v3, v5, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    new-instance v1, Lcom/ninesky/browser/view/bs;

    check-cast p1, Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v1, p1}, Lcom/ninesky/browser/view/bs;-><init>(Lcom/ninesky/browser/BrowserActivity;)V

    iput-object v1, p0, Lcom/ninesky/browser/view/c;->j:Lcom/ninesky/browser/view/bs;

    iget-object v1, p0, Lcom/ninesky/browser/view/c;->g:Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/ninesky/browser/view/c;->j:Lcom/ninesky/browser/view/bs;

    const/4 v4, 0x2

    invoke-virtual {v1, v3, v4, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    const v1, 0x7f0c0055

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/view/c;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/ninesky/browser/view/Dots;

    iput-object v1, p0, Lcom/ninesky/browser/view/c;->f:Lcom/ninesky/browser/view/Dots;

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/view/c;)I
    .locals 1

    iget v0, p0, Lcom/ninesky/browser/view/c;->b:I

    return v0
.end method

.method public static a(Lcom/ninesky/browser/BrowserActivity;)V
    .locals 1

    sget-object v0, Lcom/ninesky/browser/view/c;->a:Lcom/ninesky/browser/view/c;

    if-nez v0, :cond_0

    new-instance v0, Lcom/ninesky/browser/view/c;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/view/c;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/ninesky/browser/view/c;->a:Lcom/ninesky/browser/view/c;

    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/view/c;I)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/ninesky/browser/view/c;->b(I)V

    return-void
.end method

.method private b(I)V
    .locals 3

    iput p1, p0, Lcom/ninesky/browser/view/c;->b:I

    iget-object v0, p0, Lcom/ninesky/browser/view/c;->e:Landroid/widget/HorizontalScrollView;

    iget v1, p0, Lcom/ninesky/browser/view/c;->c:I

    mul-int/2addr v1, p1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/widget/HorizontalScrollView;->smoothScrollTo(II)V

    iget-object v0, p0, Lcom/ninesky/browser/view/c;->f:Lcom/ninesky/browser/view/Dots;

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/view/Dots;->a(I)V

    packed-switch p1, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/ninesky/browser/view/c;->k:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "Dashboard"

    const-string v2, "Dashboard-Tools"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/ninesky/browser/view/c;->k:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "Dashboard"

    const-string v2, "Dashboard-Bookmarks"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/ninesky/browser/view/c;->k:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "Dashboard"

    const-string v2, "Dashboard-Navigation"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method public static d()V
    .locals 1

    const/4 v0, 0x0

    sput-object v0, Lcom/ninesky/browser/view/c;->a:Lcom/ninesky/browser/view/c;

    return-void
.end method

.method public static e()Lcom/ninesky/browser/view/c;
    .locals 1

    sget-object v0, Lcom/ninesky/browser/view/c;->a:Lcom/ninesky/browser/view/c;

    return-object v0
.end method


# virtual methods
.method public final a()I
    .locals 1

    iget v0, p0, Lcom/ninesky/browser/view/c;->b:I

    return v0
.end method

.method public final a(I)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/ninesky/browser/view/c;->b(I)V

    return-void
.end method

.method public final b()V
    .locals 2

    iget-object v0, p0, Lcom/ninesky/browser/view/c;->h:Lcom/ninesky/browser/view/j;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/j;->a()V

    iget-object v0, p0, Lcom/ninesky/browser/view/c;->e:Landroid/widget/HorizontalScrollView;

    new-instance v1, Lcom/ninesky/browser/view/bq;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/view/bq;-><init>(Lcom/ninesky/browser/view/c;)V

    invoke-virtual {v0, v1}, Landroid/widget/HorizontalScrollView;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public final c()V
    .locals 1

    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/ninesky/browser/view/c;->b(I)V

    return-void
.end method

.method public final f()Landroid/graphics/Bitmap;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/c;->h:Lcom/ninesky/browser/view/j;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/j;->b()Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method public final onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/c;->j:Lcom/ninesky/browser/view/bs;

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/view/bs;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    return-void
.end method

.method public final onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    move v0, v2

    :goto_0
    return v0

    :pswitch_0
    iput-boolean v2, p0, Lcom/ninesky/browser/view/c;->d:Z

    move v0, v2

    goto :goto_0

    :pswitch_1
    iput-boolean v3, p0, Lcom/ninesky/browser/view/c;->d:Z

    move v0, v2

    goto :goto_0

    :pswitch_2
    iget-boolean v0, p0, Lcom/ninesky/browser/view/c;->d:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/view/c;->e:Landroid/widget/HorizontalScrollView;

    invoke-virtual {v0}, Landroid/widget/HorizontalScrollView;->getScrollX()I

    move-result v0

    iget v1, p0, Lcom/ninesky/browser/view/c;->c:I

    div-int/lit8 v1, v1, 0x2

    add-int/2addr v0, v1

    iget v1, p0, Lcom/ninesky/browser/view/c;->c:I

    div-int/2addr v0, v1

    invoke-direct {p0, v0}, Lcom/ninesky/browser/view/c;->b(I)V

    iget v1, p0, Lcom/ninesky/browser/view/c;->b:I

    if-eq v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/view/c;->h:Lcom/ninesky/browser/view/j;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/j;->c()V

    :cond_0
    move v0, v3

    :goto_1
    iput-boolean v2, p0, Lcom/ninesky/browser/view/c;->d:Z

    goto :goto_0

    :cond_1
    move v0, v2

    goto :goto_1

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
    .end packed-switch
.end method
